.datepicker-day {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  &-head {
    display: flex;
    width: 100%;
    > span {
      width: 14.25%;
      text-align: center;
      line-height: 30px;
    }
  }
  &-body {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: calc(100% - 30px);
  }
  &-itembg {
    width: 14.25%;
    text-align: center;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    background: transparent;
    z-index: 1;
    &:hover {
      .datepicker-day-item {
        background: #f5f5f5;
      }
    }
  }
  &-item {
    height: 24px;
    width: 24px;
    text-align: center;
    line-height: 24px;
  }
  &-keydown {
    background: @primary-color-disabled !important;
    color: #fff;
  }
  &-active {
    background:  @primary-color !important;
    color: #fff;
  }
  &-noNews {
    color: rgba(0, 0, 0, 0.25);
  }

  &-disabled {
    color: rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
    &::before {
      position: absolute;
      z-index: -1;
      width: 100%;
      height: 24px;
      content: "";
      top: 50%;
      margin-top: -12px;
      background-color: #f5f5f5 !important;
    }
  }
}
.datepicker-year,
.datepicker-month {
  display: flex;
  flex-wrap: wrap;
  &-itembg {
    width: 33.3333%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  &-item {
    cursor: pointer;
    width: 70px;
    display: inline-block;
    height: 28px;
    text-align: center;
    line-height: 28px;
    margin: 12px 0;
    &:hover {
      background: #f5f5f5;
    }
  }
  &-active {
    background: #007aff !important;
    color: #fff;
  }
  &-disabled {
    cursor: not-allowed;
    background: #f5f5f5 !important;
    color: rgba(0, 0, 0, 0.25);
  }
}
